.page-title {
    text-align: center;
    padding: 20px;
    background: #303F9F;
    color: white;
    font-size: 33px;
}

.news-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 30px;
}

.news-card {
    background: white;
    width: 320px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column; 
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card h2 {
    padding: 15px;
}

.news-card p {
    padding: 0 15px 15px;
}

.read-more {
    margin-top: auto;
    background: linear-gradient(135deg, #0066cc, #004c99);
    color: #fff;
    text-align: center;
    padding: 12px;

    text-decoration: none;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: 
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

.read-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 102, 204, 0.35);
    background: linear-gradient(135deg, #005bb5, #003f88);
}

/* ======== NEWS DETAIL PAGE ======== */

.news-detail-hero {
    background: #303F9F;
    padding: 60px 20px;
    text-align: center;
    color: white;
}

.post-container {
    max-width: 850px;
    margin: 40px auto;
    background: #ffffff;
    padding: 25px 30px;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
    font-family: "Poppins", sans-serif;
}

/* Title */


/* Image */
.post-image {
    width: 100%;
    max-height: 430px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    margin: 0 auto 25px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.12);
}

/* Content paragraph */
.post-container p {
    font-size: 17px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

/* Back Button */
.back-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    transition: background 0.3s ease;
}


.back-btn:hover {
    background: #0056b3;
}
/* extra image */

.news-gallery {
    margin-top: 30px;
}

.news-image-block {
    margin-bottom: 30px;
}

.news-image-block img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.image-caption {
    margin-top: 10px;
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* ======== RESPONSIVE ======== */
@media (max-width: 916px) {

    .page-title {
        font-size: 27px;
    }

    .post-container {
        margin: 20px;
        padding: 20px;
    }


    .post-container p {
        font-size: 16px;
    }

    .news--container.show {
        position: relative;
        top: 380px;
    }

    .news-detail--container.show {
        position: relative;
        top: 380px;
    }
}

@media (max-width: 480px) {
    .news-detail-hero h1 {
        font-size: 22px;
    }

    .post-container p {
        font-size:16px;
    }

    .post-image {
        max-height: 280px;
    }
}
